package org.freedoit.common.data;

import java.util.List;

import org.freedoit.common.shared.SharedProject;
import org.freedoit.common.shared.SharedTask;
import org.freedoit.common.shared.SharedTaskType;

public class FreeDoitSyncDataResponse extends FreeDoitSyncData implements FreeDoitResponse {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7420549845510233474L;

	private int code;
	private long timestamp;

	public FreeDoitSyncDataResponse() {
	}

	public FreeDoitSyncDataResponse(int code) {
		this(code, System.currentTimeMillis());
	}
	
	public FreeDoitSyncDataResponse(int code, long timestamp) {
		this.code = code;
		this.timestamp = timestamp;
	}
	
	public FreeDoitSyncDataResponse(int code, long timestamp, List<SharedProject> projects,
			List<SharedTask> tasks, List<SharedTaskType> taskTypes) {
		super(projects, tasks, taskTypes);
		this.code = code;
		this.timestamp = timestamp;
		//
	}
	
	public int getCode() {
		return this.code;
	}
	
	public void setCode(int code) {
		this.code = code;
	}
	
	public long getTimestamp() {
		return this.timestamp;
	}
	
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
}
